<?xml version="1.0"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method = "html" encoding="UTF-8" />	
<xsl:template match="/">	
<html>
<head>
<title>Annuaire</title>
<style type="text/css">
.étudiant {background-color: #FFFF99;}
.enseignant {background-color: #99CCCC;}
table {font-family:Trebuchet MS;border: solid 1px #003366;}			
</style>
</head>
<body>
<table width="500" cellpadding="0" cellspacing="0">			
<thead><tr><th>Nom</th><th>Prénom</th><th>Courriel</th></tr></thead>			
<xsl:for-each select = "annuaire/personne">
<tr>
<xsl:attribute  name = "class" ><xsl:value-of select="@type" /></xsl:attribute>
<td><xsl:value-of select="./nom" /></td>
<td><xsl:value-of select="./prenom" /></td>
<td><xsl:value-of select="./email" /></td>
</tr>
</xsl:for-each>
</table>			
</body>
</html>
</xsl:template>
</xsl:stylesheet>